<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// CHANGE NOTES
// 4/17/09
// Version 1.0
// 11/29/09
// Worked on Admin.

Include:'../siteconfig.lasso';

Var:'vPage_Title'='Forums Administration';

Include:($svLibsPath)'page_header_admin.inc';

// Start the Session
Include:($svLibsPath)'sessions_admin.inc';

Include:($svLibsPath)'header_admin.inc';

// Convert action_params
Var:'vDataType' = (Action_Param:'DataType');

// Debugging
// Var:'svDebug' = 'Y';
?>
<table border="0" width="780">
	<tr>
		<td width="170">
			[Include:($svLibsPath) 'navbar_main.inc']
		</td>
		<td>
<?Lassoscript
// Login check
If: (Var:'SessionExists') == 'Y';

	If: (Var:'vDataType') == 'Forum';
		Include:'forum_addresponse.inc';
	Else: (Var:'vDataType') == 'Topic';
		Include:'topic_addresponse.inc';
	Else: (Var:'vDataType') == 'Post';
		Include:'post_addresponse.inc';
	Else: (Var:'vDataType') == 'User';
		Include:'user_addresponse.inc';
	Else:  (Var:'vDataType') == 'Info';
		Include:'info_addresponse.inc';

	// If wrong parameter passed, display login
	Else;
		Include:'frm_login.inc';
	/If;

Else;
	// Show login form
	Include:'frm_login.inc';
/If;
?>
		</td>
	</tr>
</table>
[Include:($svLibsPath)'footer_admin.inc']
</body>
</html>
